*{   INSERT         ECCK900014                                        1


data: callback_url type epm_url,
      string_qualifier type c,
      callback_parent_session_id  type char255.

*-- URL
import callback_url from memory id 'ZSTB_DS_EXPORT_URL'.
import string_qualifier from memory id 'ZSTB_DS_EXPORT_STRING_QUALIFIER'.
import callback_parent_session_id from memory id 'ZSTB_DS_EXPORT_PARENT_SESSION_ID'.

if callback_url is not initial.

    call function 'ZSTB_DS_HTTP_CALLBACK'
      exporting
        i_datasource = i_datasource
*       I_CHABASNM   =
*       I_UPDMODE    =
        i_callback_url         = callback_url
        i_parent_session_id = callback_parent_session_id
        i_string_qualifier = string_qualifier
      tables
        i_t_select  = i_t_select
        i_t_fields  = i_t_fields
        i_t_data    = c_t_data
*       C_T_MESSAGES
     exceptions
       rsap_customer_exit_error       = 1
       others                         = 2
              .
    if sy-subrc <> 0.
     message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
endif.



*}   INSERT
